]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Minor cleanup
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 13 Oct 2017 15:46:58 +0000 (17:46 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 16 Jan 2018 16:41:46 +0000 (17:41 +0100)
_syncEnabled() will call _setupKeyboard() if necessary, so no need
to call it explicitly before.

https://bugzilla.gnome.org/show_bug.cgi?id=788188

js/ui/keyboard.js

index da36c36156d2ee7d37bf0cface024f27972e1267..87635ce83e321521bd344106afab3fc00ca31ddd 100644 (file)
@@ -324,10 +324,8 @@ var Keyboard = new Lang.Class({
 
     _sync: function () {
         if (this._keyboard &&
-            this._keyboard.keyboard_type != this._keyboardSettings.get_string(KEYBOARD_TYPE)) {
+            this._keyboard.keyboard_type != this._keyboardSettings.get_string(KEYBOARD_TYPE))
             this._destroyKeyboard();
-            this._setupKeyboard();
-        }
 
         this._syncEnabled();
     },